Repository navigation
chore: test Java 21 and 25 in CI and replace JDK 8 Doclava. - #1262
lahirumaramba wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the project's Checkstyle configuration, upgrades the maven-checkstyle-plugin to version 3.6.0, and migrates the Doclava Javadoc generation setup to support JDK 17 or higher. It also includes formatting and style adjustments across various Java source and test files to comply with the updated Checkstyle rules. Feedback on these changes highlights two issues in pom.xml: the omission of the -J-Xmx1024m memory limit option during the migration to , which could cause OutOfMemoryError during Javadoc generation, and an overly broad replacement token href='reference' that should be constrained with a trailing slash to prevent accidental matches.
yvonnep165
left a comment
There was a problem hiding this comment.
Overall LGTM! One small thing: since the standard doclet ignores @hide, class- and member-level @hide APIs in public packages (e.g. ImplFirebaseTrampolines, InternalHelpers, and some "for internal use" members in DatabaseError, Query, and TenantManager) will now appear in the Maven Central Javadoc jar. might be worth either noting this in the PR description or excluding the two fully hidden classes via <sourceFileExcludes>?
PR checks currently stop at Java 17 because
maven-checkstyle-plugin2.17 fails with reflection errors on JDK 21+, and artifact packaging and reference doc generation rely oncom.google.doclava:doclava:1.0.6, which uses Javadoc APIs removed after JDK 8.This PR upgrades
maven-checkstyle-pluginto 3.6.0, adds Java 21 and Java 25 to the GitHub Actions CI matrix, switches Maven Central Javadoc packaging to the standardmaven-javadoc-plugindoclet, and updates thedevsite-apidocsprofile to use a JDK 17+ compatible Doclava doclet JAR. Compiled SDK bytecode remains at Java 8.Technical Details
pom.xml,checkstyle.xml): Upgradesmaven-checkstyle-pluginfrom2.17to3.6.0(Checkstyle9.3, compatible across JDK 8 through JDK 25), migratesLineLengthandSuppressionCommentFilterto Checkstyle 9 module hierarchy, alignsRightCurlyandWhitespaceAroundwithgoogle_checks.xml, and fixes malformed@seeJavadoc tags and continuation indentation flagged by Checkstyle 9.3..github/workflows/ci.yml): Expandsjava-versionmatrix from[8, 11, 17]to[8, 11, 17, 21, 25].pom.xml): Replacesdoclava:1.0.6inattach-javadocswith standardmaven-javadoc-plugin, excluding internal packages (*.internaland internaldatabasesubpackages) and registering@hideas a custom ignored tag.pom.xml,CONTRIBUTING.md): Updatesdevsite-apidocsto accept-Ddoclava.jarwith JDK 17+--add-exportsflags,sourceFileIncludes, anddisableNoFonts.